package com.woniu.adopt.mapper;

import com.woniu.adopt.entity.PetArticle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Repository
public interface PetArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PetArticle record);

    PetArticle selectByPrimaryKey(Integer id);

    List<PetArticle> selectAll();

    int updateByPrimaryKey(PetArticle record);

    List<PetArticle> selectByConf(String title);

    int updateViews(int id);

    int updataById(@Param("id") int id, @Param("title") String title, @Param("image") String image, @Param("introduce") String introduce, @Param("body") String body, @Param("display") int display);
}